package start.spring.basic.flowable.entity;


import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import start.spring.basic.ry.annotation.Excel;


/**
 * 流程类别管理对象 bpm_lclb
 * 
 * @author xuyy
 * @date 2023-08-17
 */
@Data
@TableName("bpm_lclb")
@ApiModel(value="bpm_lclb表映射对象", description="")
public class BpmLclb implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类别id")
    @TableField("ID")
    private String id;

    @ApiModelProperty(value = "类别名称")
    @TableField("LCLB_NAME")
    @Excel(name = "类别名称")
    private String lclbName;

    @ApiModelProperty(value = "备注")
    @TableField("BZ")
    @Excel(name = "备注")
    private String bz;

    @ApiModelProperty(value = "显示序号")
    @TableField("XH")
    @Excel(name = "显示序号")
    private Integer xh;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty(value = "创建时间起")
    @TableField(exist=false)
    private String beginCreateTime;
    
    @ApiModelProperty(value = "创建时间止")
    @TableField(exist=false)
    private String endCreateTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("UPDATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateTime;
	
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getId())
            .append("lclbName", getLclbName())
            .append("BZ", getBz())
            .append("XH", getXh())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
